import { defineAsyncComponent } from 'vue'
export const loadAsyncComponent = (loader) => {
  return defineAsyncComponent({
    loader,
    loadingComponent: () => 'Loading',
    errorComponent: () => 'Error',
    delay: 20,
    timeout: 5000,
  })
}